force https redirection laravel

71

force https redirection laravel -

// app/Providers/AppServiceProvider.php
URL::forceScheme('https');

redrectnh to https n laravel -

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]

Comments

Submit
0 Comments